package pzl.com.threadrelated.tasks;

import android.os.Handler;
import android.os.Message;
import android.util.Log;

/**
 * @author zl.peng
 * @version [1.0, 2016-11-14]
 */
public class SubThread3 extends Thread {
    Handler handler;

    public SubThread3(Handler handler) {
        this.handler = handler;
    }

    @Override
    public void run() {
        Log.e("pzl", "子线程：" + Thread.currentThread().getName() + " run() start");
        Message message = handler.obtainMessage();
        message.obj = "sa bi ya 3";
        handler.sendMessage(message);
        Log.e("pzl", "子线程：" + Thread.currentThread().getName() + " run() end");
    }


}
